package structural.adapter.clazz;

/**
 * @ClassName: SDAdapterTF
 * @Description: 类适配器：继承了SanDiskTF，实现了SDCard
 * @Author: liu-hao
 * @Date: 2023-04-11 11:41
 * @Version: 1.0
 **/
public class SDAdapterTF extends SanDiskTF implements SDCard {

    public SDAdapterTF(String tfData) {
        super(tfData);
    }

    @Override
    public String readSD() {
        System.out.println("adapter read tf card");
        return super.readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        super.writeTF(msg);
    }
}
